// 导入路由
import VueRouter from 'vue-router'
// 导入自定义组件
import homeContainer from './components/tabbar/homeContainer.vue'
import memberContainer from './components/tabbar/memberContainer.vue'
import searchContainer from './components/tabbar/searchContainer.vue'
import shoppingCarContainer from './components/tabbar/shoppingCarContainer.vue'


// 3. 创建路由对象
var router = new VueRouter({
  routes: [
	  {path: '/home', component: homeContainer },
	  {path: '/member', component: memberContainer },
	  {path: '/search', component: searchContainer },
	  {path: '/shoppingCar', component: shoppingCarContainer }
  ],
  linkActiveClass: 'mui-active'
})

// 把路由对象暴露出去
export default router